﻿package utils
{
	import flash.text.Font;
	import flash.text.TextFormat;
	
	public class Fonts
	{
		[Embed(source = '../../fonts/verdana.ttf', fontName = 'Verdana', mimeType = 'application/x-font',fontFamily = "VerdanaFamily")]
		private static var Verdana:Class;
		
		public function Fonts()
		{
			Font.registerFont(Verdana);
		}
		
		public static function getUniqueFontName(font:Font):String
		{
            return font.fontName + ":" + font.fontStyle;
		}
		
		public static var verdana:TextFormat = new TextFormat("Verdana", 10, 0x000000, false);
		public static var verdanaBlack:TextFormat = new TextFormat("Verdana", 12, 0x000000,false);
		public static var verdanaBold:TextFormat = new TextFormat("Verdana", 12, 0x00437d, true);
		public static var verdanaUnderline:TextFormat = new TextFormat("Verdana", 12, 0x00437d,false,false,true);
	}
}